package com.cwf.cvmagic;


import com.cwf.common.entity.auth.TokenInfo;
import com.cwf.common.utils.auth.JwtUtil;
import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class ProductToken {

    /**
     * @description 生成token
     * @author 18068
     * @date 2023/2/17 8:01
     * @return
     */
    @Test
   public void Token(){
        TokenInfo tokenInfo = new TokenInfo();
        tokenInfo.setUserId("3");
        tokenInfo.setUserName("1806839210");
        System.out.println(JwtUtil.getToken(tokenInfo));
    }
}
